<!-- HEADER -->
<header>
<!-- NAV-BAR -->
<div class="container">
    <div class="row">
        <div class="col-md-4 col-md-offset-4">
            <div id="logo">
                <a href="index.html"><img src="<?php echo base_url(); ?>skin/admin/img/logo/logo-alt.png" height="40" alt="logo name" /></a>
            </div>
        </div>
    </div>
</div>
<!--/NAV-BAR -->
</header>
<!--/HEADER -->
<!-- LOGIN -->
<section id="login" class="visible">
    <div class="container">
        <div class="row">
            <div class="col-md-4 col-md-offset-4">
                <div class="login-box-plain">
                    <h2 class="bigintro">Đăng nhập</h2>
                    <div class="divide-40"></div>
                    <form action="<?php echo base_url();?>dangnhap.html" method="POST" role="form">
                      <div class="form-group">
                        <label for="exampleInputEmail1">Tên đăng nhập</label>
                        <i class="fa fa-user"></i>
                        <input type="text" name="username" value="<?php if(!empty($_POST["username"])) {echo $_POST["username"]; }?>" placeholder="Tên đăng nhập" class="form-control" id="exampleInputEmail1" />
                      </div>
                      <div class="form-group">
                        <label for="exampleInputPassword1">Password</label>
                        <i class="fa fa-lock"></i>
                        <input type="password" value="<?php if(!empty($_POST["password"])) {echo $_POST["password"]; }?>" placeholder="Mật khẩu" name="password" class="form-control" id="exampleInputPassword1" />
                      </div>
                      <?php
                                echo form_error('username', '<span class="label label-danger">', '</span> <br /> <br />');
                                echo form_error('password', '<span class="label label-danger">', '</span> <br />');
                                    if($this->session->userdata('loidn')){
                                    echo '<span class="label label-danger">'.$this->session->userdata('loidn').'</span><br/>';
                                $this->session->unset_userdata('loidn');
                        }
                        ?>
                      <div class="form-actions">
                        <label class="checkbox"> <input type="checkbox" class="uniform" value="" /> Nhớ tài khoản</label>
                        <button type="submit" class="btn btn-danger">Submit</button>
                      </div>
                    </form>
                    <div class="login-helpers">
                        <a href="#" onclick="swapScreen('forgot');return false;">Quên mật khẩu?</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<!--/LOGIN -->
            <!-- FORGOT PASSWORD -->
            <section id="forgot">
                <div class="container">
                    <div class="row">
                        <div class="col-md-4 col-md-offset-4">
                            <div class="login-box-plain">
                                <h2 class="bigintro">Reset Password</h2>
                                <div class="divide-40"></div>
                                <form role="form">
                                  <div class="form-group">
                                    <label for="exampleInputEmail1">Vui lòng nhập địa chỉ email</label>
                                    <i class="fa fa-envelope"></i>
                                    <input type="email" class="form-control" id="exampleInputEmail1" />
                                  </div>
                                  <div class="form-actions">
                                    <button type="submit" class="btn btn-info">Gửi mật khẩu đến email của tôi</button>
                                  </div>
                                </form>
                                <div class="login-helpers">
                                    <a href="#" onclick="swapScreen('login');return false;">Quay trở lại</a> <br />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
            <!-- FORGOT PASSWORD -->